package cn.cumulomq.entity;

import cn.ait.umc.logicalchannel.AFTNProtocolParameter;
import cn.ait.umc.logicalchannel.SerialInterface;
import cn.ait.umc.logicalchannel.TCPInterface;
import cn.ait.umc.logicalchannel.amtcp.client.AMTCPClientInterface;

public class ChannelConfig {

	public static final int COMMTYPE_TCP=1;
	public static final int COMMTYPE_SERIAL=2;
	public static final int COMMTYPE_AMTCP=3;
	private String name;
	private String id;
	private String remark;
    private AFTNProtocolParameter messageProtocolParameter;

    private SerialInterface serialInterface;

    private TCPInterface tcpInterface;

    private AMTCPClientInterface amTcpInterface;
    
    private String protocolParmJson;
    private String interfaceJson;

    private int commType;

    private boolean alertNoMsg;

    private int alertNoMsgInterval;

    private String alertSoundName;

    public AFTNProtocolParameter getMessageProtocolParameter() {
        return messageProtocolParameter;
    }

    public void setMessageProtocolParameter(
            AFTNProtocolParameter messageProtocolParameter) {
        this.messageProtocolParameter = messageProtocolParameter;
    }

    public SerialInterface getSerialInterface() {
        return serialInterface;
    }

    public void setSerialInterface(SerialInterface serialInterface) {
        this.serialInterface = serialInterface;
    }

    public TCPInterface getTcpInterface() {
        return tcpInterface;
    }

    public void setTcpInterface(TCPInterface tcpInterface) {
        this.tcpInterface = tcpInterface;
    }

    public int getCommType() {
        return commType;
    }

    public void setCommType(int commType) {
        this.commType = commType;
    }

    public boolean isAlertNoMsg() {
        return alertNoMsg;
    }

    public void setAlertNoMsg(boolean alertNoMsg) {
        this.alertNoMsg = alertNoMsg;
    }

    public int getAlertNoMsgInterval() {
        return alertNoMsgInterval;
    }

    public void setAlertNoMsgInterval(int alertNoMsgInterval) {
        this.alertNoMsgInterval = alertNoMsgInterval;
    }

    public String getAlertSoundName() {
        return alertSoundName;
    }

    public void setAlertSoundName(String alertSoundName) {
        this.alertSoundName = alertSoundName;
    }

    /** @return the amTcpInterface */
    public AMTCPClientInterface getAmTcpInterface() {
        return amTcpInterface;
    }

    /** @param amTcpInterface the amTcpInterface to set */
    public void setAmTcpInterface(AMTCPClientInterface amTcpInterface) {
        this.amTcpInterface = amTcpInterface;
    }

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getProtocolParmJson() {
		return protocolParmJson;
	}

	public void setProtocolParmJson(String protocolParmJson) {
		this.protocolParmJson = protocolParmJson;
	}

	public String getInterfaceJson() {
		return interfaceJson;
	}

	public void setInterfaceJson(String interfaceJson) {
		this.interfaceJson = interfaceJson;
	}

}
